import React, { Component } from "react";
export default class Home extends Component{
  constructor(props){
    super(props);
    this.state = {
    }
  }
  render(){
    var _this = this,
    langIndex = _this.props.langKey,
    translate = {
      cn:{
        "出现错误" : "出现错误",
        "公告" : "公告",
        "页面不存在或者链接错误, 请检测后再重试" : "页面不存在或者链接错误, 请检测后再重试",
      },
      en:{
        "出现错误" : "Error occurred",
        "公告" : "Announcement",
        "页面不存在或者链接错误, 请检测后再重试" : "Page does not exist or link error, please check and try again",
      }
   },
   page = translate[langIndex];
    return(
      <div id="content">
        <div className="page-header">
          <div className="container-fluid">
            <h1>{page['出现错误']}</h1>
          </div>
        </div>
        <div id="contents" className="container-fluid">
          <div className="panel panel-default">
            <div className="panel-heading">
              <h3 className="panel-title"><i className="fa fa-bullhorn"></i>{page['公告']}</h3>
            </div>
            <div className="panel-body red">
            {page['页面不存在或者链接错误, 请检测后再重试']}
            </div>
          </div>
        </div>
      </div>
    );

  }
}